package com.lovo.csc.service.impl;

import com.lovo.csc.entity.Purchase;
import com.lovo.csc.mapper.PurchaseMapper;
import com.lovo.csc.service.IPurchaseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.util.MQUtil;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
@Service
public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> implements IPurchaseService {

    @Autowired
    IPurchaseService purchaseService;

    @RabbitListener(queues = MQUtil.TrPurchaseInfoQueue)
    public void addPurchase(){

    }
}
